package com.learn.mapper;

import com.learn.pojo.LagouUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @program: learn-parent
 * @description
 * @author: luffy
 * @create: 2020-09-17 23:31
 */
@Mapper
public interface LagouUserMapper {
    @Select("select * from lagou_user where email=#{email}")
    List<LagouUser> findLagouUser(String email);

    @Insert("insert into lagou_user(email,password) values(#{email},#{password})")
    void addUser(String email, String password);
}
